package cn.getech.data.metadata.model.res.log;

import cn.getech.data.metadata.entity.meta.CollectionTableField;
import lombok.Data;

@Data
public class FieldLog {
    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 字段类别
     */
    private String fieldType;
    /**
     * 字段变化
     *
     */
    private String changeInfo;
    public FieldLog(){

    }

    public FieldLog(CollectionTableField field) {
        if (field != null) {
            this.fieldName=field.getFieldName();
            this.fieldType=field.getFieldType();
            this.changeInfo=field.getChangeInfo();
        }
    }
}
